package org.fujene.structure;

// インデックスするための情報をまとめます 複数文章対応
public class ExtendQueue{
	public int contentTypes, appendixTypes;
	public String[] contents;
	public String[] appendices;
	public double score, tmpscore;
	public long ID;

	public ExtendQueue(int contents, int appendices, long ID){
		this.contentTypes = contents;
		this.appendixTypes = appendices;

		this.contents = new String[contents];

		this.appendices = new String[appendices];

		this.ID = ID;
		this.score = this.tmpscore = 0.0;
	}

	public ExtendQueue(String[] contents, String[] appendices, long ID){
		this.contentTypes = contents.length;
		this.appendixTypes = appendices.length;

		this.contents = contents;

		this.appendices = appendices;

		this.ID = ID;
		this.score = this.tmpscore = 0.0;
	}
	
	@Override
	public String toString(){
		return new String(this.contentTypes + " contents, " + this.appendixTypes + " apps.\nID: " + this.ID);
	}
}
